package com.systop.asset.entity;

import com.systop.asset.service.Treeable;

import java.util.List;

/**
 * 耗材类别对象 material_category
 * 
 * @author mc
 * @date 2025-06-26
 */
public class MaterialCategory extends BaseEntity implements Treeable<MaterialCategory>
{
    private static final long serialVersionUID = 1L;

    /** 耗材类别ID */
    private Long id;

    /** 类别名称 */
    private String name;

    /** 上级分类ID */
    private Long parentId;

    private List<MaterialCategory> children;

    @Override
    public List<MaterialCategory> getChildren() {
        return children;
    }

    @Override
    public void setChildren(List<MaterialCategory> children) {
        this.children = children;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }


}
